package com.chenbei.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chenbei.system.domain.SysOrganization;
import com.chenbei.system.vo.req.SysOrganizationReq;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysOrganizationMapper extends BaseMapper<SysOrganization> {

    /**
     * 根据用户id获取组织
     * @param sysUserId 用户ID
     * @return 组织
     */
    SysOrganization getBySysUserId(@Param("sysUserId") Long sysUserId);

    /**
     * 查询列表
     * @param sysOrganizationReq 请求实例
     * @return List
     */
    List<SysOrganization> list(@Param("whereCondition") SysOrganizationReq sysOrganizationReq);
}
